<%--
功能: 向导Dialog
--%>
<%@ tag body-content="scriptless"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<style>
	.ui-effects-transfer { border: 2px dotted gray; } 
</style>

<c:set var="ui_dialog" value="true" scope="request"/>
<fmt:message key="contentSelector.title" var="selectContentTitle"/>	
<div class="wizard_wrap">
	<div id="divDlgWizard" style="visibility:hidden;position:absolute;overflow: auto;">
		<iframe id="WizardIframe"  name="WizardIframe" frameborder="0"  width="738" height="550" scrolling="no">
			<%-- 放置内容 fillDiv --%>
		</iframe>
	</div>
</div>
<fmt:message key="wizard.dialogTitle" var="dialogTitle"/>
<c:set var="ui_effect_transfer" value="true" scope="request"/>
<script type="text/javascript">
var ui_dialog_Wizard;
var WizardIframe = $j("#WizardIframe")[0];
var WizardHasLoad = false;
$j(document).ready(function(){
	ui_dialog_Wizard = $j("#divDlgWizard"); 
}); 

<%--模拟重写打开dialog方法 --%>
function showWizardDialog()
{
	$j('#divDlgWizard').css("visibility","visible");
	if(!WizardHasLoad){
		ui_dialog_Wizard.dialog(
			{ title:'${dialogTitle}', 
			  modal: true , 
			  resizable:false,
			  height:600, 
			  width:738, 
			  bgiframe: false ,
			  overlay: { opacity: 0.5, background: "black" },
			  beforeclose: function(){
				//ui_dialog_Wizard.effect('transfer',{ to: "#wizardGuideDialogLink",className: "ui-effects-transfer"},1000); 
			 }
		});
		//WizardIframe.src =__ctxPath + "/guide/guideSelector/windowPage.html?selectorId=1";
		<%
			java.util.Date now = new java.util.Date();
			request.setAttribute("now", now);
		%>
		WizardIframe.src =__ctxPath + "/wizard/storeWizard_step0${empty stepNum ? 1 : stepNum}.html?decorator=step&now=${now}";
		
		WizardHasLoad = true;
	}	
	ui_dialog_Wizard.dialog("open");
	
	
}

<%--模拟重写关闭dialog方法 --%>
function closeWizardDialog()
{
	ui_dialog_Wizard.dialog("close");
}

</script>